package com.haizhi.crm.sys.message.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * Created by wangshan on 2018/5/16.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MessageCategoryVo extends MessageCategoryDo {

    private List<MessageCategoryVo> messageCategoryVoList;

    public List<MessageCategoryVo> getMessageCategoryVoList() {
        return messageCategoryVoList;
    }

    public void setMessageCategoryVoList(List<MessageCategoryVo> messageCategoryVoList) {
        this.messageCategoryVoList = messageCategoryVoList;
    }

    public MessageCategoryVo(MessageCategoryDo messageCategoryDo) {
//        this.id = messageCategoryDo.id;
        this.setId(messageCategoryDo.getId());
        this.setParentId(messageCategoryDo.getParentId());
        this.setName(messageCategoryDo.getName());
        this.setDescription(messageCategoryDo.getDescription());
        this.setLeaf(messageCategoryDo.isLeaf());
        this.setLevel(messageCategoryDo.getLevel());
    }

}
